using System;
using System.Collections.Generic;

namespace Pronghorn.Core
{
	public class ProngHornArea : IProngHornArea
	{
		private IList<WidgetBase> _layout = new List<WidgetBase>();

		public ProngHornArea(string name)
		{
			if (String.IsNullOrEmpty(name))
			{
			    throw new ArgumentException("Name can't be null nor empty.");
			}
			Name = name;
		}

		public IList<WidgetBase> Layout
		{
			get { return _layout; }
			set { _layout = value; }
		}

		public string Name
		{
			get; set;
		}
	}
}